package com.ruoyi.market.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 轮播图对象 banner
 *
 * @author ruoyi
 */
public class Banner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 轮播图ID
     */
    @Excel(name = "轮播图序号", cellType = ColumnType.NUMERIC, prompt = "轮播图编号")
    private Long bannerId;

    /** 店铺ID */
    private String shopId;

    /**
     * 帐号状态（0正常 1停用）
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 排序
     */
    @Excel(name = "排序", cellType = ColumnType.NUMERIC)
    private Long bannerSort;

    /**
     * 图片地址
     */
    private String bannerImage;

    /**
     * 图片标题
     */
    private String bannerTitle;

    /**
     * 图片描述
     */
    private String bannerDescription;

    /**
     * 是否需要登录（是否需要登录 0-是 1-否 默认 1）
     */
    @Excel(name = "是否需要登录", readConverterExp = "0=是,1=否")
    private String needLogin;

    /**
     * 应用ID
     */
    private String appId;

    /**
     * 跳转地址
     */
    private String url;

    /**
     * 跳转方式 navigateTo switchTab redirectTo
     */
    private String navType;

    /**
     * 跳转类型 inner-内部 outmp-外部小程序 webview-webview outapp-外部app outh5-外部h5
     */
    private String goType;

    /**
     * 外部应用appId
     */
    private String outAppId;

    /**
     * 外链应用名称
     */
    private String outAppName;

    /**
     * 展示类型 banner-轮播 popup-弹窗 float-浮窗
     */
    private String imageType;

    /**
     * 按钮文字
     */
    private String btnText;

    /**
     * 按钮类型
     */
    private String btnType;

    /**
     * 复制内容
     */
    private String copyContent;

    /**
     * 复制提示
     */
    private String copyTips;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    public Banner() {

    }

    public Banner(Long bannerId) {
        this.bannerId = bannerId;
    }

    public Long getBannerId() {
        return bannerId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public void setBannerId(Long bannerId) {
        this.bannerId = bannerId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getBannerSort() {
        return bannerSort;
    }

    public void setBannerSort(Long bannerSort) {
        this.bannerSort = bannerSort;
    }

    public String getBannerImage() {
        return bannerImage;
    }

    public void setBannerImage(String bannerImage) {
        this.bannerImage = bannerImage;
    }

    public String getBannerTitle() {
        return bannerTitle;
    }

    public void setBannerTitle(String bannerTitle) {
        this.bannerTitle = bannerTitle;
    }

    public String getBannerDescription() {
        return bannerDescription;
    }

    public void setBannerDescription(String bannerDescription) {
        this.bannerDescription = bannerDescription;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getNeedLogin() {
        return needLogin;
    }

    public void setNeedLogin(String needLogin) {
        this.needLogin = needLogin;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getGoType() {
        return goType;
    }

    public void setGoType(String goType) {
        this.goType = goType;
    }

    public String getNavType() {
        return navType;
    }

    public void setNavType(String navType) {
        this.navType = navType;
    }

    public String getOutAppId() {
        return outAppId;
    }

    public void setOutAppId(String outAppId) {
        this.outAppId = outAppId;
    }

    public String getOutAppName() {
        return outAppName;
    }

    public void setOutAppName(String outAppName) {
        this.outAppName = outAppName;
    }

    public String getImageType() {
        return imageType;
    }

    public void setImageType(String imageType) {
        this.imageType = imageType;
    }

    public String getBtnType() {
        return btnType;
    }

    public void setBtnType(String btnType) {
        this.btnType = btnType;
    }

    public String getBtnText() {
        return btnText;
    }

    public void setBtnText(String btnText) {
        this.btnText = btnText;
    }

    public String getCopyContent() {
        return copyContent;
    }

    public void setCopyContent(String copyContent) {
        this.copyContent = copyContent;
    }

    public String getCopyTips() {
        return copyTips;
    }

    public void setCopyTips(String copyTips) {
        this.copyTips = copyTips;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("bannerId", getBannerId())
                .append("shopId", getShopId())
                .append("bannerSort", getBannerSort())
                .append("bannerTitle", getBannerTitle())
                .append("bannerDescription", getBannerDescription())
                .append("bannerImage", getBannerImage())
                .append("appId", getAppId())
                .append("needLogin", getNeedLogin())
                .append("url", getUrl())
                .append("goType", getGoType())
                .append("navType", getNavType())
                .append("outAppId", getOutAppId())
                .append("outAppName", getOutAppName())
                .append("imageType", getImageType())
                .append("btnText", getBtnText())
                .append("btnType", getBtnType())
                .append("copyContent", getCopyContent())
                .append("copyTips", getCopyTips())
                .append("shopInfo", getShopInfo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .toString();
    }
}
